package com.zyx.reward.server.common.exception;


import com.zyx.reward.server.common.constant.ResponseCode;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/1 08:13
 */
public abstract class BaseException extends RuntimeException {

    private int status = ResponseCode.RESPONSE_CODE_200;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public BaseException(String message, int status) {
        super(message);
        this.status = status;
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String message, Throwable cause,
                         boolean enableSuppression,
                         boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

}
